#include"SelectServer.hpp"
#include<string>




void Useage(char* ch[])
{
    std::cout << "Useage: " << ch[0] << "server port" << std::endl; 
}

int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        Useage(argv);
        exit(1);
    }


    std::unique_ptr<SelectServer> _server = std::make_unique<SelectServer>(std::stoi(argv[1]));
    _server->Run();
    
    return 0;
}